#ifndef SUBWIDGET_H
#define SUBWIDGET_H

#include <QWidget>
#include "MdiChild.h"
#include "MQ.h"
class SubWidget : public QWidget
{
    Q_OBJECT

public:
    SubWidget(QWidget *parent=0);
    ~SubWidget();
    void SetMq(MQ *mq);
private:
    QLineEdit *m_topic;
    QPushButton *m_sub;
    MQ *m_mq;
    void InitWidget();
private slots:
    void SendSub();
};

#endif // SUBWIDGET_H
